package com.qiwenshare.file.dto.file;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class WOPIFileInfoDTO {

    @JsonProperty("BaseFileName")
    private String baseFileName;

    @JsonProperty("DisablePrint")
    private Boolean disablePrint;

    /**
     * 是否可编辑
     */
    @JsonProperty("UserCanWrite")
    private Boolean userCanWrite;

    /**
     * 是否可另存为
     */
    @JsonProperty("UserCanNotWriteRelative")
    private Boolean userCanNotWriteRelative;

    /**
     * 拥有者ID
     */
    @JsonProperty("OwnerID")
    private String ownerID;

    /**
     * 文件大小(byte)
     */
    @JsonProperty("Size")
    private Long size;

    /**
     * 用户标识
     */
    @JsonProperty("UserId")
    private String userId;


    /**
     * 用户名
     */
    @JsonProperty("UserFriendlyName")
    private String userFriendlyName;

    /**
     * 隐藏打印选项
     */
    @JsonProperty("HidePrintOption")
    private Boolean hidePrintOption;

    /**
     * 隐藏保存选项
     */
    @JsonProperty("HideSaveOption")
    private Boolean hideSaveOption;

    /**
     * 禁止导出
     */
    @JsonProperty("DisableExport")
    private Boolean disableExport;

    /**
     * 禁止编辑
     */
    @JsonProperty("DisableCopy")
    private Boolean disableCopy;

    /**
     * 用户扩展信息
     */
    @JsonProperty("UserExtraInfo")
    private UserExtraInfo userExtraInfo;

    /**
     * 水印
     */
    @JsonProperty("WatermarkText")
    private String watermarkText;
    @Data
    @Accessors(chain = true)
    public static class UserExtraInfo{
        private String avatar;

        private String mail;
    }
}
